<?php
/**
 * Author：晴天 QQ：1186258278
 * Creation：2020/3/6 15:55
 * Filename：index.php
 * 简约app模板
 */
if (!defined('IN_CRONLITE')) die();

?>
<html style="<?= background::image() == false ? 'background:linear-gradient(to left, #70e1f5, #ffd194);' : background::image() ?>">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/>
    <title><?= $conf['sitename'] . ($conf['title'] == '' ? '' : ' - ' . $conf['title']) ?></title>
    <meta name="keywords" content="<?= $conf['keywords'] ?>">
    <meta name="description" content="<?= $conf['description'] ?>">
    <link rel="stylesheet" type="text/css"
          href="<?php echo $cdnserver; ?>assets/layui/css/layui.css?var=<?= $accredit['versions'] ?>"/>

    <link rel="stylesheet" type="text/css"
          href="<?php echo $cdnserver; ?>assets/AppStore/css/style.css?var=<?= $accredit['versions'] ?>"/>
    <link href="<?= $cdnpublic ?>Swiper/4.5.1/css/swiper.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="<?php echo $cdnpublic ?>html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="<?php echo $cdnpublic ?>respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<style>
    body {
        width: 100%;
        max-width: 648px;
        margin: 0 auto;
        color: #666;
        background: #f7f7f7;
        overflow-x: hidden;
    }
</style>
<body>
<section class="jq22-flexView" style="box-shadow: 0px 0px 6px #eee;width: 100%;max-width: 648px">
    <header class="jq22-navBar jq22-navBar-fixed">
        <a href="javascript:template.kefu(<?= $conf['kfqq'] ?>)" class="jq22-navBar-item layui-icon layui-icon-service"
           title="联系客服" style="color: #920fff;font-size: 1.36rem">

        </a>
        <div class="jq22-center">
            <div class="jq22-search-box">
                <input type="text" id="so" style="text-indent: 0em;padding-left:1em" placeholder="搜寻商品">
            </div>
        </div>
        <a href="javascript:location.href='./?name='+$('#so').val()" class="jq22-navBar-item">
            <i class="layui-icon layui-icon-search" style="color: #ff5a7c;font-size: 2em"></i>
        </a>
    </header>
    <section class="jq22-scrollView" style="background-color: white">
        <div class="m-slider" data-ydui-slider>
            <div class="swiper-container" style="width: 100%;max-height: 34vh"></div>
        </div>
        <div class="jq22-palace">
            <div id="Class"></div>
            <a href="/?mod=article" class="jq22-palace-grid">
                <div class="jq22-palace-grid-icon">
                    <img style="width: 35px;height: 35px" src="/assets/img/T3.png">
                </div>
                <div class="jq22-palace-grid-text">
                    <h2 style="height: 1.5em;line-height: 1.5em" class="layui-elip">平台通知</h2>
                </div>
            </a>
            <a href="/user" class="jq22-palace-grid">
                <div class="jq22-palace-grid-icon">
                    <img style="width: 35px;height: 35px" src="/assets/AppStore/images/UD.png">
                </div>
                <div class="jq22-palace-grid-text">
                    <h2 style="height: 1.5em;line-height: 1.5em" class="layui-elip">加盟分店</h2>
                </div>
            </a>
            <a href="?mod=class" class="jq22-palace-grid">
                <div class="jq22-palace-grid-icon">
                    <img style="width: 35px;height: 35px" src="/assets/AppStore/images/class.png">
                </div>
                <div class="jq22-palace-grid-text">
                    <h2 style="height: 1.5em;line-height: 1.5em" class="layui-elip">全部分类</h2>
                </div>
            </a>
        </div>
        <div class="divHeight"></div>
        <div id="gid"></div>
        <div style="text-align: center;margin-top: 1em" class="layui-text">
            <p>© <?= $conf['sitename'] ?>. All rights reserved.</p>
            <?= $conf['notice_bottom'] ?>
            <p><?= $conf['statistics'] ?></p>
        </div>
        <div style="height:55px"></div>
    </section>
    <footer class="jq22-footer jq22-footer-fixed" style="width: 100%;max-width: 648px">
        <a href="/" class="jq22-tabBar-item" style="color: red">
                <span class="jq22-tabBar-item-icon">
                    <i class="layui-icon layui-icon-home"></i>
                </span>
            <span class="jq22-tabBar-item-text" style="color: red">首页</span>
        </a>
        <a href="/?mod=class" class="jq22-tabBar-item ">
                <span class="jq22-tabBar-item-icon">
                     <i class="layui-icon layui-icon-app"></i>
                </span>
            <span class="jq22-tabBar-item-text">分类</span>
        </a>
        <a href="/?mod=query" class="jq22-tabBar-item ">
                <span class="jq22-tabBar-item-icon">
                    <i class="layui-icon layui-icon-form"></i>
                </span>
            <span class="jq22-tabBar-item-text">订单</span>
        </a>
        <a href="?mod=cart" class="jq22-tabBar-item ">
                <span class="jq22-tabBar-item-icon">
                    <i class="layui-icon layui-icon-cart"></i>
                </span>
            <span class="jq22-tabBar-item-text">购物车</span>
        </a>
        <a href="user" class="jq22-tabBar-item ">
                <span class="jq22-tabBar-item-icon">
                    <i class="layui-icon layui-icon-user"></i>
                </span>
            <span class="jq22-tabBar-item-text">我的</span>
        </a>
    </footer>
</section>
<script src="<?php echo $cdnpublic ?>jquery/1.12.4/jquery.min.js"></script>
<script src="<?php echo $cdnserver; ?>assets/layui/layui.all.js"></script>
<script src="<?= $cdnpublic ?>Swiper/4.5.1/js/swiper.min.js"></script>
<script src="<?php echo $cdnserver; ?>assets/js/main.js?var=<?= $accredit['versions'] ?>"></script>
<script src="/template/AppStore/template.js?var=<?= $accredit['versions'] ?>"></script>
<script>
    if ($_GET['cid'] == undefined && $_GET['gid'] == undefined && $_GET['name'] == undefined) {
        merchandise.gid_data(-1);
    }

    $.ajax({
        type: "post",
        url: "/ajax.php?act=PopupNotice",
        dataType: "json",
        success: function (data) {
            if (data.code == 1) {
                layer.open({
                    offset: '100px',
                    closeBtn: 0,
                    shade: [0.8, '#393D49'],
                    shadeClose: true,
                    title: false,
                    content: data.msg,
                    btn: ['好的'],
                });
            }
        }
    });

    layui.use('flow', function () {
        var flow = layui.flow;
        flow.lazyimg();
    });

</script>
</body>
</html>
